package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-09 14:12
 */
@Getter
@AllArgsConstructor
public enum BindAccEnum {
    WX("1", "memberServiceImpl", "bindWx", "绑定微信"),
    ALI("2", "memberServiceImpl", "bindZfb", "绑定支付宝");
    String type;
    String component;
    String method;
    String tips;

    public static BindAccEnum getByType(String type) {
        for (BindAccEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
